package com.gjl.app.oauth.endpoint;

public class ServerProvider {
	
	private String unauthorizedUrl;
	
	private String authorizedUrl;
	
	private String accessUrl;
	
	public ServerProvider(String unauthorized, String authorized, String access) {
		this.unauthorizedUrl = unauthorized;
		this.authorizedUrl = authorized;
		this.accessUrl = access;
	}

	public String getUnauthorizedUrl() {
		return unauthorizedUrl;
	}

	public void setUnauthorizedUrl(String unauthorizedUrl) {
		this.unauthorizedUrl = unauthorizedUrl;
	}

	public String getAuthorizedUrl() {
		return authorizedUrl;
	}

	public void setAuthorizedUrl(String authorizedUrl) {
		this.authorizedUrl = authorizedUrl;
	}

	public String getAccessUrl() {
		return accessUrl;
	}

	public void setAccessUrl(String accessUrl) {
		this.accessUrl = accessUrl;
	}
	
	public static ServiceProvider getGoogleServiceProvider(){
		return new ServiceProvider("https://www.google.com/accounts/OAuthGetRequestToken",
								  "https://www.google.com/accounts/OAuthAuthorizeToken",
								  "https://www.google.com/accounts/OAuthGetAccessToken");
	}
	
}
